package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by 胡亚敏 on 2016/3/21.
 */
public class Refunds implements Parcelable {

    private String object;
    private String url;
    private boolean has_more;
    private ArrayList<String> data;

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isHas_more() {
        return has_more;
    }

    public void setHas_more(boolean has_more) {
        this.has_more = has_more;
    }

    public ArrayList<String> getData() {
        return data;
    }

    public void setData(ArrayList<String> data) {
        this.data = data;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.object);
        dest.writeString(this.url);
        dest.writeByte(has_more ? (byte) 1 : (byte) 0);
        dest.writeStringList(this.data);
    }

    public Refunds() {
    }

    protected Refunds(Parcel in) {
        this.object = in.readString();
        this.url = in.readString();
        this.has_more = in.readByte() != 0;
        this.data = in.createStringArrayList();
    }

    public static final Parcelable.Creator<Refunds> CREATOR = new Parcelable.Creator<Refunds>() {
        public Refunds createFromParcel(Parcel source) {
            return new Refunds(source);
        }

        public Refunds[] newArray(int size) {
            return new Refunds[size];
        }
    };
}
